<template>
  <div class="navigation-outer">
    <div class="navigation-in">
      <div class="navigation-log">
        <a href="#"><img src="../assets/../assets/images/log.png" alt=""></a>
      </div>
      <div class="navigation-content">
        <RouterLink to="Index_Page" :class="{ active: isActive }" @click="isActive = !isActive">首页</RouterLink>
        <RouterLink to="BOT_Page" :class="{ active: isActive }" @click="isActive = !isActive">BOT</RouterLink>
        <RouterLink to="BOT_Page" :class="{ active: isActive }" @click="isActive = !isActive">沸点</RouterLink>
        <RouterLink to="BOT_Page" :class="{ active: isActive }" @click="isActive = !isActive">课程</RouterLink>
        <RouterLink to="BOT_Page" :class="{ active: isActive }" @click="isActive = !isActive">直播</RouterLink>
        <RouterLink to="BOT_Page" :class="{ active: isActive }" @click="isActive = !isActive">活动</RouterLink>
        <RouterLink to="BOT_Page" :class="{ active: isActive }" @click="isActive = !isActive">竞赛</RouterLink>
        <RouterLink to="BOT_Page" :class="{ active: isActive }" @click="isActive = !isActive">商城</RouterLink>
        <RouterLink to="BOT_Page" :class="{ active: isActive }" @click="isActive = !isActive">APP</RouterLink>
        <RouterLink to="BOT_Page" :class="{ active: isActive }" @click="isActive = !isActive">插件</RouterLink>
      </div>
      <div class="navigation-img2">
        <a href="#"><img src="../assets/images/zhishiku.png" alt=""></a>
      </div>
      <div class="navigation-input">
        <input type="#" placeholder="探索稀土掘金" class="input1">
        <div>
          <span class="iconfont icon-sousuo"></span>
        </div>
      </div>
      <div class="navigation-button1">
        <a href="#">
          <button>创作者中心</button>
          <div>
            <span class="iconfont icon-sousuo"></span>
          </div>
        </a>
      </div>
      <div class="vip1">
        <a href="#">
          <img src="../assets/images/vip.png" alt="">
          <span>会员</span>
        </a>
      </div>
      <div class="navigation-button2">
        <button>
          <div>登入</div>
          <div>|</div>
          <div>注册</div>
        </button>
      </div>
    </div>
  </div>
  <RouterView />
</template>

<script setup lang="ts">
import { ref } from 'vue';
import { RouterLink, RouterView } from 'vue-router'
const isActive = ref(true)


</script>

<style lang="css" scoped>
@import '../assets/reset1.css';
@import '../assets/navigation.css';
@import '../assets/iconfont/iconfont.css';

.active {
  color: red;
}
</style>
